<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
        <title>用户列表展示</title>
</head>
<body>
    <table border="1" style="width: 500px;">
        <tr>
            <th>用户ID</th>
            <th>用户姓名</th>
            <th>用户年龄</th>
            <th>操作</th>
        </tr>

        <tr th:each="user : ${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.age}"></td>
            <td>
                <a th:href="@{/users/findUserById(id=${user.id})}">更新用户 </a>
                <a th:href="@{/users/deleteUser(id=${user.id})}">删除</a>
            </td>
        </tr>
    </table>
    <form th:action="@{/users/input}" method="post">
    <input type="submit" value="新增"/><br/>
    </form>

</body>
</html>